//
//  FDMainViewController.m
//  FastDoctor
//
//  Created by MyMacbookPro on 16/5/3.
//  Copyright © 2016年 MyMacbookPro. All rights reserved.
//

#import "FDMainViewController.h"

@interface FDMainViewController ()

@end

@implementation FDMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = randomColor;
    self.title = @"快医";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    UIViewController *vc = [[UIViewController alloc] init];
    vc.view.backgroundColor = [UIColor greenColor];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
